<?php

namespace App\Model;

use Illuminate\Database\Eloquent\Model;

class Comments extends Model
{
    protected $table = 'comments';
    protected $primaryKey = 'id';
    public $timestamps = true;

    public function findArticles()
    {
        $this->belongsTo('App\Model\Articles', 'article_id');
    }

    public function findUsers()
    {
        $this->belongsTo('App\Model\HomeUsers', 'user_id');
    }


}
